Use of Quotation Marks

Category: Zone BBS Suggestions and Feedback

Post 1 by TylerK (This site is so "educational") on Monday, 01-Dec-2008 8:58:20

Could it be possible to please put a reminder somewhere on the site that everyone can easily find that says that to use quotation marks, one has to put a backslash (\) in front of them? I just tried running the ASL command on the user known as "Thexy Thtevie" (ID: 8045), and I got an error saying that there was a syntax error in the MySQL and to check the manual for the correct syntax. I determined after examination of the small snippet of text that MySQL gave me that the quotation marks weren't properly escaped.

Tyler

Post 2 by andrew1989 (Account disabled) on Tuesday, 02-Dec-2008 10:52:17

You're right. Or, someone should have Chris or J Squared go in and fix the error.

Post 3 by TylerK (This site is so "educational") on Wednesday, 03-Dec-2008 19:26:58

Chris or J-Squared can't modify the profiles of individual users. Or can they? I don't think it's possible, but if they're the ones in control of the Web server, who knows?

Post 4 by andrew1989 (Account disabled) on Thursday, 04-Dec-2008 10:52:05

well, what causes the quote problem exactly. Couldn't it just b a code modification?

Post 5 by TylerK (This site is so "educational") on Thursday, 04-Dec-2008 21:26:00

What causes the quote problem is that an unescaped quotation mark is being placed into a MySQL table. MySQL, like almost any programming language, requires that quotation marks be escaped within user-entered data to differentiate that data from a standard string that the programmer inputs. Quotation marks inside strings also have to be escaped in most programming languages.

Post 6 by margorp (I've got the gold prolific poster award, now is there a gold cup for me?) on Friday, 05-Dec-2008 16:55:54

indeed, nothing more than an oversight.